package com.hengpeng.itfin.job;

import java.util.Date;

import com.hengpeng.common.cis.ComponentContextLoader;
import com.hengpeng.common.scheduling.AbstractJob;
import com.hengpeng.common.scheduling.ScheduleConfig;
import com.hengpeng.common.util.DateTimeUtil;
import com.hengpeng.itfin.service.ServiceFactory;
/**
 * 充值交易查询
 * @author weiyuan
 *
 */
public class ImprestQueryJob extends AbstractJob {

    @Override
    public void exec(boolean isTimeout, ScheduleConfig config) {
        log.info("充值交易状态查询定时作业开始,时间：" + DateTimeUtil.formatToStr(new Date(), DateTimeUtil.DATE_FORMAT_YMDHMS));
        ServiceFactory serviceFactory = ComponentContextLoader.getBean(ServiceFactory.class);
        serviceFactory.getPaymentService().imprestQuery();
        log.info("充值交易状态查询定时作业结束,时间：" + DateTimeUtil.formatToStr(new Date(), DateTimeUtil.DATE_FORMAT_YMDHMS));
        
    }

}
